package com.xnew.menu.mapper;

import com.xnew.menu.bean.Menu;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MenuMapper {
    int deleteByPrimaryKey(@Param("id") String id);

    int insert(Menu record);

    Menu selectByPrimaryKey(@Param("id") String id);

    List<Menu> selectAll(@Param("loginName") String loginName, @Param("auId") String auId);

    int updateByPrimaryKey(Menu record);
    
    int updateResourceTypeById(@Param("id") String id, @Param("resourceType") String resourceType);
    
    List<Menu> selectChildCountById(@Param("id") String id);

	List<Map<String, Object>> selectIndustry();
}